package MyGraph;

// 边结点类
public class ArcNode {
    // 边指向的顶点的位置
    public int adjVex;
    // 边的权值
    public int value;
    // 指向下一条边
    public ArcNode nextArc;

    public ArcNode() {
        this(-1, 0, null);
    }

    public ArcNode(int adjVex) {
        this.adjVex = adjVex;
    }

    public ArcNode(int adjVex, int value) {
        this.adjVex = adjVex;
        this.value = value;
        this.nextArc = null;
    }

    public ArcNode(int adjVex, int value, ArcNode nextArc) {
        this.adjVex = adjVex;
        this.value = value;
        this.nextArc = nextArc;
    }
}
